//
//  LSZListTopicsManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/23.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZListTopicsManager.h"

@implementation LSZListTopicsManager
-(id)initWithListTopicsDetails :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * AddArrayMg = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in arrayData) {
            LSZListTopicsMg * mg = [[LSZListTopicsMg alloc]init];
            mg.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            mg.content = NullStringjudgment(NSStr(diction[@"content"]));
            mg.num = NullStringjudgment(NSStr(diction[@"num"]));
            mg.cate = NullStringjudgment(NSStr(diction[@"cate"]));
            mg.cname = NullStringjudgment(NSStr(diction[@"cname"]));
            mg.img = NullStringjudgment(NSStr(diction[@"img"]));
            [AddArrayMg addObject:mg];
        }
        self.arrayData = AddArrayMg;
    }
    return self;
}
@end
@implementation LSZListTopicsMg
@end
